package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 活动与代金券关联表
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("activity_voucher")
@ApiModel(value="ActivityVoucherDO对象", description="活动与代金券关联表")
public class ActivityVoucherDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID主键")
    @TableId(value = "ACTIVITY_VOUCHER_ID", type = IdType.ASSIGN_ID)
    private String activityVoucherId;

    @ApiModelProperty(value = "活动ID")
    private String activityId;

    @ApiModelProperty(value = "优惠券ID")
    private String couponId;

    @ApiModelProperty(value = "优惠券名称")
    private String  couponName;

    @ApiModelProperty(value = "店铺ID")
    private String shopId;

    @ApiModelProperty(value = "关联优惠券数量")
    private Integer couponNumber;

    @ApiModelProperty(value = "限购人数")
    private Integer limitedQuantity;

    @ApiModelProperty(value = "优惠激活时间")
    private Date couponActivationTime;

    @ApiModelProperty(value = "优惠券失效时间")
    private Date couponInvalidTime;

    @ApiModelProperty(value = "实际付款金额")
    private Integer paidInAmount;

    @ApiModelProperty(value = "面值金额")
    private Integer faceValue;

    @ApiModelProperty(value = "报警通知（低于指定数量）")
    private Integer notice;

    @ApiModelProperty(value = "是否开启连带赠（1开启，2关闭）")
    private Integer isNotGift;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer revision;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;


}
